package com.yiwyn.zero;

import com.yiwyn.zero.fetcher.CustomerFetcher;


public class ZeroReflectDemo {


    public static void main(String[] args) {

        Customer customer = new Customer();

        customer.setName("Yiwyn");
        customer.setPhone("1234567890");
        customer.setGender("male");
        CustomerFetcher fetcher = new CustomerFetcher(customer);

        Object value = fetcher.getValue(CustomerFetcher.CustomerField.NAME);
        System.out.println(value);


        // PayInfo payInfo = new PayInfo();
        // payInfo.setAcctName("Yiwyn ICBC");
        // PayInfoFetcher payInfoFetcher = new PayInfoFetcher(payInfo);
        // Object value1 = payInfoFetcher.getValue(PayInfoFetcher.PayInfoField.ACCTNAME);
        // System.out.println(value1);

    }

}
